from django.urls import path
from .views import ArticleListView, ArticleDetailView, ArticleLikeView, ArticleCollectView

urlpatterns = [
    path('', ArticleListView.as_view()),  # 文章列表
    path('<int:pk>/', ArticleDetailView.as_view()),  # 文章详情
    path('<int:pk>/like/', ArticleLikeView.as_view()),  # 点赞
    path('<int:pk>/collect/', ArticleCollectView.as_view()),  # 收藏

]
